package InterfaceDemo;

public class printer1 implements Device,NetworkDevice,UsbDevice{
    private String brand;
    public printer1(String brand){
        this.brand = brand;
    }
    public void powerOn(){
        System.out.println(brand + "打印机开机");
    }
    public void powerOff(){
        System.out.println(brand + "打印机关机");
    }
    public void connectNetwork(){
        System.out.println(brand + "打印机通过网络连接成功");
    }
    public void connectUsb(){
        System.out.println(brand + "打印机通过USB连接成功");
    }
    public void repair(){}
}
